home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Freelog 55
/
Freelog055.iso
/
Bas
/
Musique
/
EasyAlbum
/
easyam_setup.exe
/
{app}
/
export_sql.tpt
< prev
next >
Wrap
Text File
|
2003-11-17
|
774b
|
26 lines
@# SQL file(*.sql)|*.sql
@set(i,0)\
@set(over, @size(albums))\
@foreach album (albums) {\
@set(id,i+1)\
INSERT INTO albums (id_album, artist, album, genre, year, playlistpath, coverpath) VALUES (\
${id} ,\
\"@replace(album.artist,"\"","\"\"")\", \
\"@replace(album.album,"\"","\"\"")\", \
\"@replace(album.genre,"\"","\"\"")\", \
\"@replace(album.year,"\"","\"\"")\", \
\"@replace(album.playlistpath,"\"","\"\"")\", \
\"@replace(album.coverpath,"\"","\"\"")\" );
@set(j,1)\
@foreach track(album.tracks) {\
INSERT INTO tracks (id_album, tracknum, title, trackpath) VALUES (\
${id} ,\
${j} ,\
\"@replace(track.title,"\"","\"\"")\", \
\"@replace(track.trackpath,"\"","\"\"")\" );
@set(j,j+1)\
}\
@progress(i,over)\
@set(i,i+1)\
}\
@progress(over,over)\